package com.hfzy.ihk.common.web;

import com.hfzy.ihk.common.constants.GlobalStatic;
import com.hfzy.ihk.common.support.Result;
import com.hfzy.ihk.common.util.Utils;

import java.util.List;

/**
 * Created by Administrator on 2018/1/10.
 *
 * @author wws
 */
public class WebResult implements Result{

    /**
     * 参考com.hfzy.ihk.common.constants.GlobalStatic#CODE_1
     * */
    private String code;

    private String msg;

    private long total;

    private List records;

    private Object parameter;

    public WebResult() {
    }

    public WebResult(String code, String msg, long total, List records, Object parameter) {
        this.code = code;
        this.msg = msg;
        this.total = total;
        this.records = records;
        this.parameter = parameter;
    }

    @Override
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public List getRecords() {
        return records;
    }

    public void setRecords(List records) {
        this.records = records;
    }

    public Object getParameter() {
        return parameter;
    }

    public void setParameter(Object parameter) {
        this.parameter = parameter;
    }
}
